from celery_tasks.main import celery_app
from libs.yuntongxun.sms import CCP


# 定义短信发送任务
@celery_app.task
def send_sms_code(mobile, sms_code):
    result = CCP().send_template_sms(mobile, [sms_code, 5], 1)
    print("当前验证码是:", sms_code)
    return result
